#include "Fingerprint-device.h"
#include "Fingerprint-manager.h"
#include <unistd.h>

int main(int argc, char const *argv[])
{
    FingerPrintDevice fingerDev("/dev/ttymxc5");
    FingerprintManager fingerManger(&fingerDev);

    // sleep(3);
    // // 暂停
    // fingerManger.pauseVerifyFingerPrintTask();

    // sleep(3);

    // // 开始
    // fingerManger.resumeVerifyFingerPrintTask();

    // uint16_t pos = 10;
    // cout << "record fingprint " << endl;
    // bool ok = fingerManger.recordFingerPrint(10);
    // cout << "record fingerprint ok :" << ok << endl;

    cout << "start delete fringerprint..." << endl;
    bool ok = fingerManger.deleteFingerPrint(10);
    cout << "delete fingerprint ok :" << ok << endl;

    pause();

    return 0;
}
